﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="formReservaLista.aspx.cs" Inherits="WebApplication1.formReservaLista" EnableEventValidation="false" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>


        <anthem:GridView ID="gvGrid" runat="server"  AutoGenerateColumns="False" OnRowDataBound="gvGrid_RowDataBound"
            ShowHeader="False" CellPadding="4" ForeColor="#333333" GridLines="None"  onselectedindexchanged="gvGrid_SelectedIndexChanged"
             Width="100%"
              OnRowCommand="gvGrid_RowCommand"
            AutoUpdateAfterCallBack="True" UpdateAfterCallBack="True"    
            OnRowCreated="gvGrid_RowCreated"  
            
              >  

            
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField ItemStyle-Width="5%">
                    <ItemTemplate>
                        <anthem:CheckBox ID="chk" runat="server"  AutoUpdateAfterCallBack="False" AutoCallBack="True" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField ItemStyle-Width="90%">
                    <ItemTemplate>
                        <table border="0">
                            <tr>
                                <td>
                                    <asp:Label ID="lblRsposRsNum" runat="server" />
                                    <br />
                                    <asp:Label ID="lblMaktx" runat="server" Font-Bold="true" />
                                    <br />
                                    <asp:Label ID="lblWerks" runat="server" />
                                    <br />
                                    <asp:Label ID="lblUsnam" runat="server" />
                                    <br />
                                    <asp:Label ID="lblKostl" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:TemplateField>
                
            </Columns>
            <Columns>
               <asp:TemplateField>
                <ItemTemplate>                    
                    <anthem:LinkButton ID="LinkButton1" runat="server" OnClientClick="btn_Click"  CommandName="Select">
                        <img src="imagenes/flecha.png" border="0" />
                    </anthem:LinkButton>
                </ItemTemplate>
               </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </anthem:GridView>
        <br />
     </div>
     <div>
        <asp:LinkButton ID="lnkDummy" runat="server"></asp:LinkButton>
        <cc1:ModalPopupExtender ID="ModalPopupExtender1" BehaviorID="mpe" runat="server"
            PopupControlID="pnlPopup" TargetControlID="lnkDummy" BackgroundCssClass="modalBackground">
        </cc1:ModalPopupExtender>
        <asp:Panel ID="pnlPopup" runat="server" CssClass="modalPopup" HorizontalAlign="Center"
            Style="display: none" BackColor="#CC99FF" BorderStyle="Solid" 
            Width="150px">
            <div class="header">
                Mensajes
            </div>
            <div class="body">
              <table>
              <tr>
                <asp:Label ID="lblMensajes" runat="server" Text="Label"></asp:Label>
              </tr>
              <tr align ="center">
                <asp:Button ID="btnHide" runat="server" Text="Aceptar" CssClass="boton2" OnClientClick="return HideModalPopup()"/>
              </tr>
             </table>
            </div>
        </asp:Panel>
    </div>
</asp:Content>
